<?php
    
    $a = mysqli_connect("localhost","root","gala123456");
    $db = mysqli_select_db($a,"sheep");
    $sql = "SELECT `avatar` FROM `user` WHERE `openid` = '".$_GET["openid"]."'";
    $query = mysqli_query($a,$sql);
    while ($row = mysqli_fetch_row($query)) {
        foreach ($row as $nei) {
            echo json_encode($nei);
        }
    }
?>